
#ifndef __ACQUIRE_COMPUTE_H
#define __ACQUIRE_COMPUTE_H

#include "acquire_common.h"

EXPORTED void EXPORTABI acquireComputeAddKey(const char *keyname, const char *keytype, const char *keydata, const char *keypurpose, int docommit);

EXPORTED int EXPORTABI acquireComputeInitState(const char *hostname, int portno,  const char *sendingkeyname,
   const char *my_name, const char *password, const char *recipientkeyname, const char *keydir);

EXPORTED void EXPORTABI acquireComputeUpdateUnencryptReencryptKeys(const char *file_dec, const char *name_dec, const char *file_enc, const char *name_enc, int docommit);

EXPORTED const char * EXPORTABI acquireComputeGetEncryptedPassword(const char *file_pass, const char *name_dec);

struct data_store_instance_info_struct
{
   const char *datastoreid;
   int localinstancenumber;
};

typedef struct data_store_instance_info_struct acquireComputeDataStoreWorkInstanceInfo;

EXPORTED acquireComputeDataStoreWorkInstanceInfo EXPORTABI acquireComputeGetDataStoreForWorkInput();

EXPORTED void EXPORTABI acquireComputeStartProcess(const char *directory, int instanceid, int instancecount);

EXPORTED int EXPORTABI acquireComputeWatchForCancelOrComplete(int maxduration);

#endif
